<%@page import="com.eos.orm.mybatis.model.SysUser"%>
<%@page import="com.eos.orm.mybatis.model.SysRole"%>
<%@page import="com.eos.common.tool.DataCacheUtil"%>
<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=7" />
		<title>EOS易道对账系统</title>

		<link href="css/themes/default/style.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="css/themes/css/core.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="css/themes/css/print.css" rel="stylesheet" type="text/css" media="print" />
		<!--[if IE]>
		<link href="themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
		<![endif]-->

		<script src="js/speedup.js" type="text/javascript"></script>
		<script src="js/jquery-1.7.1.js" type="text/javascript"></script>
		<script src="js/jquery.cookie.js" type="text/javascript"></script>
		<script src="js/jquery.validate.js" type="text/javascript"></script>
		<script src="js/dwz.regional.zh.js" type="text/javascript"></script>
		<script src="js/dwz.min.js" type="text/javascript"></script>
		<script src="js/dwz.regional.zh.js" type="text/javascript"></script>
		<script src="js/dwz.tree.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(function() {
				DWZ.init("dwz.frag.xml", {
					loginUrl : "login_dialog.html",
					loginTitle : "登录",
					statusCode : {ok : 200,error : 300,timeout : 301},
					pageInfo : {pageNum : "pageNum",numPerPage : "numPerPage",orderField : "orderField",orderDirection : "orderDirection"},debug : false,callback : function(){initEnv();$("#themeList").theme({themeBase : "themes"});}
				});
				initTree();
			});
			 function showLocale(e){var t,n,r,i=e.getYear();i<1900&&(i+=1900);var s=e.getMonth()+1;s<10&&(s="0"+s);var o=e.getDate();o<10&&(o="0"+o);var u=e.getHours();u<10&&(u="0"+u);var a=e.getMinutes();a<10&&(a="0"+a);var f=e.getSeconds();f<10&&(f="0"+f);var l=e.getDay();return l==0&&(l="星期日"),l==1&&(l="星期一"),l==2&&(l="星期二"),l==3&&(l="星期三"),l==4&&(l="星期四"),l==5&&(l="星期五"),l==6&&(l="星期六"),t=i+"年"+s+"月"+o+"日"+u+":"+a+":"+f+" "+l,t;}
			 function tick(){var e=new Date;$("#localtime").html(showLocale(e)),window.setTimeout("tick()",1e3);}
			 
	 
	function getTree(data, parentId, parentId1) {
		var tree = "";
		if (parentId1 != 0) {
			tree = '<ul>';
		}
		for(var i in data) {
		   if (data[i].parentId == parentId) {
			  if (data[i].parentId == 0) {
					tree += "</div><div class='accordionHeader'><h2><span>Folder</span>"
					+ data[i].menuName + "</h2>	</div><div class='accordionContent' ><ul class='tree treeFolder expand'>";
				} else { 
				
				}
				if (data[i].parentId != 0 && (data[i].menuUrl == null || "" == data[i].menuUrl)) {
					tree += "<li><a href=javascript:;>" + data[i].menuName + "</a>" + "</li>";
				} else if (data[i].parentId != 0) {
					var conn = data[i].menuUrl.indexOf("?") > -1 ? "&" : "?";
					tree += "<li><a href="+data[i].menuUrl+conn+"navTabId="+data[i].menuId+" target=navTab"+" rel="+data[i].menuId+">" + data[i].menuName + "</a>" +"</li>";
				}
				tree += getTree(data, data[i].menuId, data[i].parentId);
			}
		}
		return tree + "</ul>";
	}
	
	function initTree(){ 
		var data = jQuery.parseJSON($.trim($("#span_menu").text())); 
		var tree = getTree(data, 0, 0).replaceAll("<ul></ul>", "");
		$("#pageLeft").html(tree.substr(6)+"</div>");
	}
	</script>
 </head>
	<body scroll="no">
		<div id="layout">
			<div id="header">
				<div class="headerNav">
					<a class="logo">标志</a>
					<ul class="nav">
						<li>
							<a style="text-decoration: none;" id="localtime"> 
								<script type="text/javascript">
								tick();
								</script> 
							</a>
						</li>
						<li>
							<a>欢迎: ${SysUser.userName }</a>
						</li>

						<li>
							<a href="changePwd" target="dialog" mask="true" width="400" height="250" maxable="false">修改密码</a>
						</li>

						<li>
							<a href="logout">安全退出</a>
						</li>
					</ul>
					<ul class="themeList" id="themeList">
						<li theme="default">
							<div class="selected">
								蓝色
							</div>
						</li>
						<li theme="green">
							<div>
								绿色
							</div>
						</li>
						<!--<li theme="red"><div>红色</div></li>-->
						<li theme="purple">
							<div>
								紫色
							</div>
						</li>
						<li theme="silver">
							<div>
								银色
							</div>
						</li>
						<li theme="azure">
							<div>
								天蓝
							</div>
						</li>
					</ul>
				</div>
				<!-- navMenu -->
			</div>

			<div id="leftside">
				<div id="sidebar_s">
					<div class="collapse">
						<div class="toggleCollapse">
							<div></div>
						</div>
					</div>
				</div>
				<div id="sidebar">
					<div class="toggleCollapse">
						<h2>主菜单</h2><div>收缩</div></div>

					<div class="accordion" fillSpace="sidebar" id="pageLeft">
						
					</div>
				</div>
			</div>
			<div id="container">
				<div id="navTab" class="tabsPage">
					<div class="tabsPageHeader">
						<div class="tabsPageHeaderContent">
							<!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
							<ul class="navTab-tab">
								<li tabid="main" class="main">
									<a href="javascript:;"><span><span class="home_icon">我的主页</span>
									</span>
									</a>
								</li>
							</ul>
						</div>
						<div class="tabsLeft">
							left
						</div>
						<!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
						<div class="tabsRight">
							right
						</div>
						<!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
						<div class="tabsMore">
							more
						</div>
					</div>
					<ul class="tabsMoreList">
						<li>
							<a href="javascript:;">我的主页</a>
							<span style="display: none;" id="span_menu">${menuJson }</span>
						</li>
					</ul>
					<div class="navTab-panel tabsPageContent layoutBox">
						<div class="page unitBox">
							<div class="accountInfo">
								<div class="alertInfo">
									<h2>
										<a href="#" target="_blank">系统使用手册(PDF)</a>
									</h2>
								</div>
								<div class="right">
									<p>
										 
									</p>
									<p>
									
									</p>
								</div>
								<p>
									<span>公司网站</span>
								</p>
								<p>
									<a href="http://www.e-sto.com.cn" target="_blank">http://weibo.com/dwzui</a>
								</p>
							</div>
							<div class="pageFormContent" layoutH="80" style="margin-right: 600px;">
								<div style="height: 22px; line-height: 24px;margin-top: 2px; background: #ccc;position: fix; width:9%;">用户信息</div>
								<div style="border: 1px solid #B8D0D6; display: block; height: auto;  position: absolute;width:90%;">
								<dl>
									<dt>姓名：</dt>
									<dd>
										${SysUser.userName }
									</dd>
								</dl>
								<dl>
									<dt>角色：</dt>
									<dd>
										<% 
											SysUser user = (SysUser)session.getAttribute("SysUser");
											SysRole role = DataCacheUtil.getSysRole(user.getRoleId());
											out.print((null != role) ? role.getRoleName() : "");
										%>
									</dd>
								</dl>
								<dl>
									<dt>邮箱：</dt>
									<dd>
										${SysUser.userEmail }
									</dd>
								</dl>
								<dl>
									<dt>电话：</dt>
									<dd>
										${SysUser.userTelephone }
									</dd>
								</dl>
								<dl>
									<dt>手机：</dt>
									<dd>
										${SysUser.userMobile }
									</dd>
								</dl>
								<dl>
									<dt>创建时间：</dt>
									<dd>
										${SysUser.insertTime}
									</dd>
								</dl>
								<dl>
									<dt>备注：</dt>
									<dd>
										${SysUser.userDesc}
									</dd>
								</dl>
								</div>
							</div>

							<div style="width:600px; position: absolute; top: 70px; right: 0px; height: 259px; display: block;" layouth="80">
							    <iframe src="calendar" frameborder="0" width="540" height="400" scrolling="no"  style="overflow-x : hidden;overflow-y : hidden;" ></iframe>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div id="footer">
			Copyright(C) 2001-2011 <a href="http://www.e-sto.com.cn" target="_blank">深圳易道现代物流有限公司</a> 京ICP备05019125号-10
		</div>

	</body>
</html>